package sk.stuba.fiit.foo07.genex.dao;

import java.sql.SQLException;
import java.util.ArrayList;

import sk.stuba.fiit.foo07.genex.beans.QuestionPoints;
import sk.stuba.fiit.foo07.genex.exceptions.QuestionPointsExistsException;

public interface QuestionPointsDao {
    /**
     * Method for getting question points by test id
     * 
     * @param testID
     *                id of test
     * @return question points
     * 
     */
    public ArrayList<QuestionPoints> getQuestionPointsByTestID(Integer testID)
            throws SQLException;

    /**
     * Method for adding question points to test
     * 
     * @param testID
     *                id of test to which question points will be added
     * @param qps
     *                question points
     * 
     */

    public void addQuestionsPoints(Integer testID, ArrayList<QuestionPoints> qps)
            throws QuestionPointsExistsException, SQLException;

    /**
     * Method for modifying question points of test
     * 
     * @param testID
     *                id of test in which question points will be modified
     * @param qps
     *                question points
     * 
     */

    public void updateQuestionPoints(Integer testID,
            ArrayList<QuestionPoints> qps) throws SQLException;

}
